//
//  SXTBaseViewController.h
//  SXT
//
//  Created by 赵金鹏 on 16/8/16.
//  Copyright © 2016年 赵金鹏. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^requestSuccessBlock)(id responseObject);
typedef void(^requestErrorBlock)(NSError *error);

@interface SXTBaseViewController : UIViewController

//post请求
- (void)POSTRequestURL:(NSString *)url
                 param:(NSDictionary *)param
             isSuccess:(requestSuccessBlock)returnSuccess
               isError:(requestErrorBlock)returnError;
//get请求
- (void)GETRequestURL:(NSString *)url
                 param:(NSDictionary *)param
             isSuccess:(requestSuccessBlock)returnSuccess
               isError:(requestErrorBlock)returnError;
//提示文字
- (void)showTostInView:(NSString *)tost;

@end
